local skel = fk.CreateSkill{
  name = "the_thunder_skill",
}
Fk:loadTranslationTable{
  ["the_thunder_skill"] = "天雷",
  [":the_thunder_skill"] = "天雷",
  ["#the_thunder_skill"] = "所有人判定区各放置一张【闪电】",
}
---@type CardSkillSpec
local the_thunder = {
  prompt = "#the_thunder_skill",
  can_use = Util.GlobalCanUse,
  on_use = function (self, room, cardUseEvent)
    return Util.AoeCardOnUse(self, cardUseEvent.from, cardUseEvent, true)
  end,
  mod_target_filter = Util.TrueFunc,
  about_to_effect = function (self, room, effect)
    return table.contains(effect.to.sealedSlots, 'JudgeSlot') or effect.to:hasDelayedTrick("lightning")
  end,
  on_effect = function(self, room, effect)
    if effect.to.dead then return end
    local c = room:printCard("lightning", Card.Spade, 1)
    if not effect.to.dead then
      room:moveCardTo(c, Card.PlayerJudge, effect.to, fk.ReasonJustMove, skel.name)
    end
  end,
}
skel:addEffect("cardskill", the_thunder)
return skel